package com.donfu.system.domain.house;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.donfu.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.donfu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 产品类型对象 house_product_type
 *
 * @author donfu
 * @date 2021-12-06
 */
@ApiModel(description = "商品分类对象")
public class HouseProductType implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键Id */
    @ApiModelProperty(value = "主键Id")
    private Long id;

    /** 父产品Id 默认为0 是一级ID */
    @ApiModelProperty(value = "父产品Id 默认为0 是一级ID")
    @Excel(name = "父产品Id 默认为0 是一级ID")
    private Long pid;

    /** 商品分类名称 */
    @ApiModelProperty(value = "商品分类名称")
    @Excel(name = "商品分类名称")
    private String productName;

    /** 产品图标 */
    @ApiModelProperty(value = "产品图标")
    @Excel(name = "产品图标")
    private String productIconUrl;

    /** 产品图片 */
    @ApiModelProperty(value = "产品图片")
    @Excel(name = "产品图片")
    private String productImgUrl;

    /** 是否首页 1是 0否 */
    @ApiModelProperty(value = "是否首页 1是 0否")
    @Excel(name = "是否首页 1是 0否")
    private Integer isIndex;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Integer sort;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 备用字段 */
    @ApiModelProperty(value = "备用字段")
    @Excel(name = "备用字段")
    private String standby;

    /** 分类层级 */
    @ApiModelProperty(value = "分类层级")
    @Excel(name = "分类层级")
    private Integer level;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductIconUrl(String productIconUrl)
    {
        this.productIconUrl = productIconUrl;
    }

    public String getProductIconUrl()
    {
        return productIconUrl;
    }
    public void setProductImgUrl(String productImgUrl)
    {
        this.productImgUrl = productImgUrl;
    }

    public String getProductImgUrl()
    {
        return productImgUrl;
    }
    public void setIsIndex(Integer isIndex)
    {
        this.isIndex = isIndex;
    }

    public Integer getIsIndex()
    {
        return isIndex;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setStandby(String standby)
    {
        this.standby = standby;
    }

    public String getStandby()
    {
        return standby;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pid", getPid())
                .append("productName", getProductName())
                .append("productIconUrl", getProductIconUrl())
                .append("productImgUrl", getProductImgUrl())
                .append("isIndex", getIsIndex())
                .append("sort", getSort())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .append("standby", getStandby())
                .append("level", getLevel())
                .toString();
    }
}
